package com.qianzhou.eduUserBoot.converter;

import com.qianzhou.eduCommon.po.Roles;
import com.qianzhou.eduCommon.vo.RoleVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface RoleConverter {
    RoleConverter INSTANCE = Mappers.getMapper(RoleConverter.class);
    /**
     * 将对应的List<Role> 转换为 List<RoleVo>
     */
    List<RoleVO> poConvertVo(List<Roles> roles);
}
